package com.yzt.plugin_network;

/**
 * author : bob
 * date   : 2022/11/29
 * desc   : 超时处理
 */
public class TimeOutHelper {

    private static final TimeOutHelper instance = new TimeOutHelper();

    private TimeOutHelper() {
    }

    public static TimeOutHelper getInstance() {
        return instance;
    }

    public static final long DEFAULT_CONNECTION_MILLISECONDS = 60 * 1000L;

    public static final long DEFAULT_READ_MILLISECONDS = 60 * 1000L;

    public static final long DEFAULT_WRITE_MILLISECONDS = 60 * 1000L * 2;


    public long getReadTimeOut() {
        return DEFAULT_READ_MILLISECONDS;
    }

    public long getWriteTimeOut() {
        return DEFAULT_WRITE_MILLISECONDS;
    }

    public long getConnTimeOut() {
        return DEFAULT_CONNECTION_MILLISECONDS;
    }
}
